added login function. is hardcoded but works.