login try & catch + more unit-tests