Fixed error system, improved login