Working version of authentication. Currently without any database.