Add user name and password validation in register view