updated redirect to current page on successful login