Added login function to main.py. Unable to test, due to not being at school at the moment.