working login and signup, incl. cookies for user remembering (lacking security and some authentication)