Log in function completed register in development