Adds javascript funcion for show input at registration and login views