add user login fix functions