Reworked basic login system for no-sql