Resolved problem with getting the user id