The nice thing about moving validation into a function is that you can have few functions for different cases. For example,<br><br><div style="margin-left:40px"><i>valid_manager(#user{}) -> boolean().<br>valid_user(#user{}) -> boolean().<br>
</i></div><br>Best regards,<br>Uvarov Michael<br>