main view put in
redirect to main page on successful login