Username and Password

Added new step to test the login credentials
Use resolveAttributeName

Use resolveAttributeName helper function