Fix in redirect after log in. And it is a good idea to create hash before using function from class Hash...