fix all kinds of small bugs and done the login/register page