validation of fields for user, todo and todolist\n email regex not functioning properly