+ added redirection to previous page which needed authentication