added the correct includes and moved register to the login folder.