Bugfix makeLogin function