Add length limitation to password login and user register.