Fix bug at registration login cheking