Working first version of login system.