login some fixes