added flash message for login page; backlink clear before redirect