Fix SQL request
Fixes issues with the register method
Checks if user is logged, and favs should now be displayed correctly