Add set method for loggedin