Fixed Login, Signup and Homepage

Now, the queries work as they should!