Added redirect from login page to main page for logged user
merge