Keyboard and Trackpad not working after login after spilling liquid
As physical connectors heat and cool, they may loose contact with what they are connected to.  Rather than logging in immediately upon boot up, let the computer get up to temperature.  In other words, wait 5-10 minutes.  Can you log in at that point?  If not, the increased heat from normal startup may have exposed some hardware damage done by the liquid.