adding user login capabilities. still troubleshooting why redirect is not working on successful login