             try request.auth.login(credentials)
             
             var redirect = "/admin/dashboard"
-            if let next: String = request.query?["next"]?.string{
-                if(next != "") {
-                    redirect = next
-                }
+            if let next: String = request.query?["next"]?.string, !next.isEmpty {
+                redirect = next
             }
             
             // Todo deal with remember me            

        return Response(redirect: "/admin/login").flash(.success, "Message sent")
    }
    
    public func form(request: Request) throws -> ResponseRepresentable {
        return try drop.view.make("Login/login", [
            "next": request.query?["next"]?.node ?? nil
            ], for: request)
    }
    
    public func submit(request: Request) throws -> ResponseRepresentable {
        // Get our credentials
        guard let username = request.data["email"]?.string, let password = request.data["password"]?.string else {

        } catch {
            return Response(redirect: "/admin/login").flash(.error, "Failed to login")
        }
    }
}
