added login functionality and shit