Changed Authenticate user to return user Id