Front-end work on logging in and registering users