Finish the user register and login system