Raw login system that I'll use as reference in the future.