Register partial implementation

Next, I have to implement the login(with file io)