Function to retrieve the user.
If cookies are available, it prepares a new user and returns it. If no cookies are available, it returns null.
The user if found, otherwise null.