Changed return type for login a bit