Written a relatively secure yet still incomplete register and login mechanism. TODO: Change error handling of login to something similar as register.