Added login API, search API, and fixed Alex's shit