add functional for register & login user