Fixed Login bug