User profile authentication bug fix