Register and Login

Made the register function and login working