Added throw error for wrong username/password