Password Checker Goals Write a Java program that can check the validity of a password. Skills StringsWhile loops Program Details Write an application thatAsks the user to enter the following case sensitive information:their first namelast nameusernamepassword. A password can have letters, numbers, or other characters.Checks to see if their password is valid. A password is invalid if:It is less than 8 characters long.It contains their first name, last name or user name.Ignore the case when checking. Don’t change the case of the first, last, or username, just ignore the case when checking.If the password fails, ask the user to choose another password until they enter a valid password.Output all values upon a successful password choice.Test the program withpasswords less than 8 characterspasswords containing the first. last and user names.passwords with numbers as well as charactersHints:Make sure your output makes sense to someone running the program.Use a different string variable for each item (first name, last name, …).Only ignore case when checking validity. Don’t just drop the case when scanning them in. The following string methods will help.string.length() returns the length of the string.string1.contains(string2) returns a boolean if the string1 contains string2 in it.string.toLowerCase() returns a lower case version of the string. Resources Java Textbook Chapter 3: Using Classes and ObjectsChapter 5: Conditionals and Loops CS Awesome Website Iteration (Loops) Bill Barnum's AP Computer Science A videos While and Do While Loops Primitive and Reference (Object) Types in Memory Using Classes & Objects String Class Checking Equality in Java ( == vs equals method) What is null and a null pointer exception?