Fixes login bug

I think I fixed #14. It worked for me.