fixed bug with login decorator