Added user authentication helpers