Login and Registration without a framework