Fix Login & Register with encryption
add constants