Added redirect to home page when succesfully logged in