Created user creation and login based on phpacademy tutorials.