First draft of reg and login ready for test