added authenticate_user call to profile