If you have factory reset your switch by bypassing the startup config, there are a couple of things you need to do to access the web page. (in your case, sounds like you've set the IP and can contact the switch as you are getting a 'login failed' message, so skip to step 4.) . You probably can access the switch via the console cable too without a password even though you may have set one? This will solve that issue too.
1: set IP addess.
[SW1]interface vlan 1
[SW1-Vlan-interface1]ip address 10.0.0.1 255.0.0.0
[SW1-Vlan-interface1]quit
[SW1]
2.set a default route.
[SW1]ip route-static 0.0.0.0 0.0.0.0 10.255.255.254
3.set the admin password and service type (you can't login without a password set(weird eh!))
[SW1]local-user admin
[SW1-luser-admin]password simple mypassword
[SW1-luser-admin]service-type telnet terminal ssh
[SW1-luser-admin]service-type lan-access
[SW1-luser-admin]level 3
4.set authentication mode (this is probably the part you are missing and causes the 'login failed' message)_
[SW1]user-interface aux0
[SW1-ui-aux0]authentication-mode scheme
[SW1-ui-aux0]quit
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]authentication-mode scheme
Then save the configuration.
If you have zeroized the switch by breaking the boot sequence (ctl-b) as you boot, and then selecting option 7(bypass start-up config), you will need to set it back to load the start-up config.
As switch boots press ctl+b at the prompt 'Press Ctrl-b to enter boot menu'
Select option 7
Press enter when prompted for a password
Select option 7 'skip current configuration' (yes, even though you want to load it this time!)
Select 'no' so that it DOES load the config on next boot.
Press '0' to reboot.
You should now be able to access the web interface to continue your configuration.