testing login - with validation