login bug after registration fixed