login, small fixes