added checkbox regex
changed password regex
changed if and else if statement
added else statement