Front-end, back-end login validation