implemented front-end and back-end logins