tighting up login stuff