redirecting to homepage after successfull registration