updated islloggedin to return serialized user