changing login to use WhatAPI.post instead of its own $.ajax call