title: GETX moves to home screen on wrong login
body: <p>Hello I have a problem here am a beginner on dart and flutter development and now I stuck here, I have Auth file and login file now the problem is when ever I put credentials even wrong credentials the app still takes me to homepage what am I doing Wrong, here is my code!</p>
  <pre><code>import 'package:adlisting/screens/home.dart';
  import 'package:adlisting/services/Config.dart';
  import 'package:http/http.dart' as http;
  import 'dart:convert';
  import 'package:get/get.dart';
  // ignore: unnecessary_import
  import 'package:get/get_state_manager/get_state_manager.dart';
  
  class Auth extends GetxController {
    login(email, password) {
      var url = Uri.parse(Constants().apiUrl + &quot;/auth/login&quot;);
      var input = json.encode({
        &quot;email&quot;: email,
        &quot;password&quot;: password,
      });
      http
          .post(url, headers: {&quot;Content-Type&quot;: &quot;application/json&quot;}, body: input)
          .then((res) {
        print(res);
        print(res.body);
        Get.offAll(() =&gt; HomeScreen());
      }).catchError((err) {
        print(err);
      });
    }
  </code></pre>