added login functional