some working functions

working login, registration, select and new mail