have added redirect funtionality after a succesful registration, no session work added yet