added support to log in a user on successful server callback