login custom barebones working correctly