refactored login method in feature specs
implemented validations