Added managed bean base for error handling in add medicine page