register&login bug fixed