updated description for function loginUser