public files and front end logic set up
user login, logout and registration logic