Add Functional Test for login