frontend struct
login and registration fixes