Added functionality for redirecting to home page - fixed broken signup