transformed return values of login functions to tuples