added email pattern
added password validation pattern and fixed a bug where second email or password was being set as ok when input one and two would be null