Login and registration now done on database level