I am new to JavaScript, I wrote a function that checks the password strength on client side. Now i display the error message just below the field.