added login support, will add the role support soon