Login and sessions are now properly implemented