added login stuff