adding angular cookies, signup checks if a userid cookie exists and redirects to dashboard if user is already logged in