Got login working with post