The login part of our exam project for the security module.