add stub for login testing
change login spec to use the stub