Reworked some login functions. Worked on menus